@extends('front_default.layouts.other')

@section('styles')
    #popModal.modal {
    width:auto;
    margin-left:-585px;
    }
    #popModal.modal .modal-header {
    padding: 0px;
    border-bottom: 0px;
    }
    #popModal.modal .modal-header .close {
    position: absolute;
    right: 10px;
    z-index: 1090;
    opacity: 1;
    }
    #popModal.modal .modal-body {
    padding:0px;
    }
    .modal-backdrop {
    opacity: .3;
    }


@stop

{{-- Content --}}
@section('content')
    <!-- 通告-->
<!--    <div class="modal fade" role="dialog" id="system_notice" aria-labelledby="gridSystemModalLabel" data-toggle="modal">-->
<!--        <div class="modal-dialog" role="document">-->
<!--            <div class="modal-content">-->
<!--                <div class="modal-header">-->
<!--                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
<!--                    <h4 class="modal-title" id="gridSystemModalLabel">公告</h4>-->
<!--                </div>-->
<!--                <div class="modal-body">-->
<!--                    <div class="container-fluid">-->
<!--                        <div class="row">-->
<!--                            <p>尊敬的用户:</p>-->
<!--                            <p style="text-indent: 2em;">您好！金土地平台放假啦！假期时间为2016年2月5日至2016年2月16日。-->
<!--                            您可在此期间继续浏览使用金土地，若有任何疑问也可通过在线客服留言，我们将在假期结束后第一时间回复。-->
<!--                            祝您新春快乐，猴年大吉！</p>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </div>-->
<!--                <div class="modal-footer">-->
<!--                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>-->
<!--                </div>-->
<!--            </div><!-- /.modal-content -->
<!--        </div><!-- /.modal-dialog -->
<!--    </div><!-- /.modal -->
    <!--新闻导读 -->



    {{--<div class="row bordershop" style="width: 65%;height: 648px;position: fixed !important;top: 10%;z-index:99999">--}}
        {{--<img src="{{asset('assets/img/718.png')}}">--}}
        {{--<button class="closeborder" style="width: 110px;height: 110px;border-radius: 50%;position: fixed;left: 77%;opacity: 0"></button>--}}
    {{--</div>--}}
    <div class="container">
        <div class="row">
            <!-- 今日关注 -->
            <div class="span4">
                @include('front_default.infos.index_jrgz')
            </div>
            <!-- 新闻导读 -->
            <div class="span4">
                @include('front_default.infos.info_base_list3',array('modal_name'=>'新闻导读','limit'=>7))
            </div>
            <!--热点话题-->
            <div class="span4">
            {{--@include('front_default.infos.info_base_list4',array('modal_name'=>'对话访谈','limit'=>4))--}}
                @include('front_default.infos.info_base_list',array('modal_name'=>'热点话题'))

            </div>
        </div>
    </div>
    <div class="container">
        <!--土地供应 -->
        <div class="row">
            <div class="span8">
                <ul class="nav nav-tabs red-nav-tabs">
                    <li class="active"><a href="#land-gongying" data-toggle="tab">土地供应</a></li>
                    <li><a href="#land-ny" data-toggle="tab">农业用地</a></li>
                    <li><a href="#land-gy" data-toggle="tab">工业用地</a></li>
                    <li><a href="#land-sy" data-toggle="tab">商业用地</a></li>
                    <li><a href="#land-qt" data-toggle="tab">其他用地</a></li>
                    <!--                <li class="pull-right"><a href="{{URL::to('land')}}" target="_blank" style="font-size: 12px;">更多</a>-->
                    <!--                </li>-->
                </ul>
                <div id="myTabContent" class="tab-content" style="overflow-y: hidden;">
                    <div class="row tab-pane fade active in" id="land-gongying" style="margin-left: 0px;">
                        @include('front_default.common.tdgy')
                    </div>

                    <div class="row tab-pane fade" id="land-ny" style="margin-left: 0px;">
                        @include('front_default.common.land_ny')
                    </div>

                    <div class="row tab-pane fade" id="land-gy" style="margin-left: 0px;">
                        @include('front_default.common.land_gy')
                    </div>

                    <div class="row tab-pane fade" id="land-sy" style="margin-left: 0px;">
                        @include('front_default.common.land_sy')
                    </div>

                    <div class="row tab-pane fade" id="land-qt" style="margin-left: 0px;">
                        @include('front_default.common.land_qt')
                    </div>
                </div>

            </div>
            <div class="span4">
                {{--@include('front_default.infos.info_base_list',array('modal_name'=>'热点话题'))--}}
                {{--@include('front_default.infos.info_base_list',array('modal_name'=>'专家观点','limit'=>3))--}}

                @include('front_default.infos.info_base_list4',array('modal_name'=>'对话访谈'))
                @include('front_default.infos.info_base_list4',array('modal_name'=>'业界动态'))

            </div>

        </div>
        <div class="row">
            <div class="span12">
                @include('front_default.common.ad.front.ad_1')
            </div>
        </div>
        <!--土地需求 -->
        <div class="row">
            <div class="span8">
                <ul class="nav nav-tabs index-nav-tabs" style="margin-bottom: 0px;">
                    <li class="active">
                        <a href="#">土地需求</a>
                    </li>
                    <!--                <li class="pull-right"><a href="{{URL::to('demand')}}" target="_blank" style="font-size: 12px;">更多</a>-->
                    <!--                </li>-->
                </ul>

                <div class="row-fluid" style="margin-left: 0px;">
                    @include('front_default.common.tdxq')
                </div>

            </div>


            <!-- 阿土伯 -->
            <div class="span4" style="text-align: left;padding-top: 30px;text-align: center">
                <a target="_blank" href="{{URL::to('/blog')}}"><img src="{{asset('front_default/img/atb.gif')}}"/></a>
            </div>

        </div>
    </div>

    <!--经纪人店铺列表 -->
    @include('front_default.brokers.brokerlist')
    <!--辩论台 -->
    @include('front_default.infos.index_blt')


    <div class="container">
        <div class="row">

            <div class="span4">
            {{--@include('front_default.infos.info_base_list4',array('modal_name'=>'业界动态','limit'=>4))--}}
                @include('front_default.infos.info_base_list',array('modal_name'=>'快讯专递','limit'=>3))
            </div>
            <div class="span4">
                @include('front_default.common.ad.front.ad_2')
            </div>
            <!-- 业内动态 -->
            <div class="span4">
                @include('front_default.infos.info_base_list2',array('modal_name'=>'理论探索','limit'=>'7'))
            </div>
        </div>
    </div>


    <!--热门话题 -->
    <!--include('front_default.infos.index_rdht_pic')-->


    <!-- 金点观察 -->
    <div class="container">
        <div class="row">
            <div class="span8">
                @include('front_default.common.index_jdgc')
            </div>
            <div class="span4">
                @include('front_default.infos.info_base_list',array('modal_name'=>'三农话题','limit'=>4))
            </div>
        </div>
    </div>


    <!--优秀土地集合 -->
    <div class="container">
        @include('front_default.common.index_yxtd')
    </div>

    <div class="container">
        <div class="row" style="margin-top: 15px">
            <div class="span4">
                <!--经验借鉴 -->
                @include('front_default.infos.info_base_list',array('modal_name'=>'经验借鉴','limit'=>5))

            </div>
            <div class="span4">
                @include('front_default.common.ad.front.ad_3')
                @include('front_default.infos.index_zcfg_pic')
            </div>
            <div class="span4">
                <div class="row-fluid">
                    @include('front_default.common.index_tdal_list')
                </div>

            </div>
        </div>

        <div class="container">
            <div class="row">
                <div class="span4">
                    <!--优秀土地2 -->
                    @include('front_default.common.index_yxtd_third')
                </div>
                <div class="span4">

                    <div style="height: 100px"><a href="{{URL::to('questions')}}"><img
                                    src="{{asset('front_default/img/tdrd.gif')}}" style=""></a></div>
                    @include('front_default.common.index_tdrd',array('limit'=>3,'num'=>'20'))
                </div>
                <div class="span4">

                    @include('front_default.common.ad.front.ad_4')

                </div>
            </div>

        </div>


        <div class="container">
            <div class="row">
                <p>&nbsp;</p>
            </div>
        </div>
        <div id="popModal" class="modal hide fade" style="display: none;" tabindex="-1" role="dialog"
             aria-labelledby="popModalLabel" aria-hidden="true">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            </div>
            <div class="modal-body">
                <div class="container">
                    <img src="{{asset('front_default/img/chinese_new_year_2015.jpg') }}"/>
                </div>
            </div>
        </div>





        <div id="double12" class="modal  fade hide" tabindex="-1" role="dialog" aria-labelledby="double12"
             aria-hidden="true" >
            <div class="modal-content">
                <span type="button" class="close double12close" data-dismiss="modal" aria-hidden="true" style="position: relative;bottom: -20px;color: black !important;" >×</span>
                <img src="{{asset('front_default/img/new_year_gonggao.png')}}">
            </div>
        </div>

        @stop


        {{-- Scripts --}}
        @section('scripts')
            <script type="text/javascript">
                function loadBroker(url) {
                    $.ajax({
                        //url:'http://storet.kingland119.com/api/broker',
                        url:url,
                        type:"get",
                        success:function (data) {
                            var json=data.data;
                            var text='';
                            $(json).each(function () {
                                text=text+this.id+this.shopname+this.photo+this.expertise;
                            });
                            $('#brokernext').attr("data",data.meta.pagination.links.next);
                            $('#brokerlist').html(text);
                        }
                    });
                }
                $(document).ready(function () {
                    //loadBroker('http://storet.kingland119.com/api/broker');
                    $('#brokernext').click(function () {
                        loadBroker($(this).attr("data"));
                    });
                });

            </script>
            <script type="text/javascript">

                //var myDate = new Date();
                //var now = myDate.toTimeString();
                //if (now >='2017/1/23' && now <= '2017/2/5') {
                //    $("#double12").modal({show:true});
                //    setTimeout(function(){
                //        $("#double12").modal('hide');
                //    },30000);
                //}

                //                function systemNotice(){
//
//                    var myDate = new Date();
//                    var now = myDate.toLocaleDateString();
//                    if(now >='2016/2/5' && now <= '2016/2/16');{
//                        $('#system_notice').modal('show');
//                    }
//                }
                //systemNotice();

                $(document).ready(function () {
                    var now = new Date().getTime();
                    var closeTime = new Date("2015-1-4 02:00").getTime();
                    if (now <= closeTime) {
                        //首页显示happy new year banner
                       // $('#banner-happy-new-year-2015').show();
                    }

                    var openTime = new Date("2015-1-28 02:00").getTime();
                    var closeTime = new Date("2015-2-28 00:00").getTime();
                    if (now >= openTime && now < closeTime) {
                        //首页显示happy new chinese year banner
                        $('#popModal').modal('show');
                        setTimeout(function () {
                            $('#popModal').modal('hide');
                        }, 8000);
                    }
                    /*
                     //$("#nav").hide();
                     $("#nav1").hide();

                     //$("#nav li img").hide();
                     $("#nav1 li img").hide();

                     $('#nav1 .back img').load("
                    {{ asset('assets/ad/images/big.png') }}",function(){
                     setTimeout(function(){

                     $("#nav1").show();

                     $('.ad-mask').animate({
                     height:[500,"easeOutBack"]
                     },600);
                     $('.ad-img').animate({
                     height:[450,"easeOutBack"]
                     },600);

                     $('.ad-animate').fadeIn();

                     setTimeout(function(){
                     closeAd();
                     }, 20000);
                     }, 500);

                     });

                     $('.ad-mask').click(function(){
                     closeAd();
                     });

                     $('.ad-img').click(function(){
                     closeAd();
                     });

                     function closeAd(){
                     $('.ad-mask').animate({
                     height:[0,"easeOutBack"]
                     },600);
                     $('.ad-img').animate({
                     height:[0,"easeOutBack"]
                     },600);

                     $('.ad-animate').fadeOut();

                     clearInterval(timer1);
                     $("#nav1").hide();
                     }

                     var nav1_num = 0;

                     var timer1 = setInterval(function(){

                     nav1_num++;
                     if (nav1_num>=6)
                     {
                     nav1_num = 1;
                     }
                     var self = $("#nav1 li img[pic='"+nav1_num+"']");

                     //如果已经处于active状态，return
                     //if (this.className.indexOf("active")!=-1) return;

                     //正文文字渐隐
                     $("#nav1 .frontText").fadeOut();
                     $("#nav1 .frontTextBack").fadeOut();
                     $("#nav1 .frontTextSub").fadeOut();

                     $("#nav1 .frontText2").fadeOut();
                     $("#nav1 .frontTextBack2").fadeOut();
                     $("#nav1 .frontText3").fadeOut();
                     $("#nav1 .frontTextBack3").fadeOut();
                     $("#nav1 .frontText4").fadeOut();
                     $("#nav1 .frontTextBack4").fadeOut();

                     //active状态的图片恢复原样
                     $("#nav1 li img.active")
                     //.fadeTo(200,0.6)
                     .removeClass("active")
                     .animate({top:35,width:5,left:10},300)
                     .parent().css({"color":"#aaa"});  //

                     //获取数据
                     var i = self.attr("pic");
                     var t = self.attr("text").split("|");

                     //当前
                     self.animate({top:30,width:6,height:5,left:1},100)
                     .addClass("active")
                     //.fadeTo(200,1)
                     .parent().css({"color":"white"});

                     $("#nav1 .back").children().addClass("gray").end()
                     .fadeTo(500,0.1,function(){
                     //var IMG = new Image();
                     //IMG.s
                     //var s = 'small';
                     //if($(this).attr('pos') == '1') s = 'big';
                     $(this).children("img").attr("src","
                    {{ asset('assets/ad') }}/images/big.png").removeClass("gray");	  //更改图片
                     $(this).fadeTo(500,1,function(){
                     $("#nav1 .frontText").html(t[0]).fadeIn(200);	//更改正文文字
                     $("#nav1 .frontTextBack").html(t[0]).fadeIn(200);	//阴影文字
                     $("#nav1 .frontTextSub").html(t[1]).fadeIn(200)	//副标题

                     if(t.length>=5){
                     $("#nav1 .frontText2").html(t[2]).fadeIn(200);	//更改正文文字
                     $("#nav1 .frontTextBack2").html(t[2]).fadeIn(200);	//阴影文字
                     $("#nav1 .frontText3").html(t[3]).fadeIn(200);	//更改正文文字
                     $("#nav1 .frontTextBack3").html(t[3]).fadeIn(200);	//阴影文字
                     $("#nav1 .frontText4").html(t[4]).fadeIn(200);	//更改正文文字
                     $("#nav1 .frontTextBack4").html(t[4]).fadeIn(200);	//阴影文字
                     }
                     });
                     });

                     }, 3500);
                     */

                });
            </script>



            {{--<script>--}}
                {{--$(function () {--}}
                    {{--$(".closeborder").click(function () {--}}
                        {{--$(".bordershop").remove();--}}
                    {{--});--}}
                    {{--$(".bordershop").click(function () {--}}
                        {{--window.location.href="{{SystemConfig::Brokersite_link}}/broker/list";--}}
                        {{--$(".bordershop").remove();--}}
                    {{--})--}}
                    {{--$(function () {--}}
                        {{--$(".bordershop").fadeOut(7000);--}}
                    {{--});--}}

                {{--})--}}
            {{--</script>--}}
            <div style="position: relative;bottom: 0px">

                <h6>
                    友情链接：<a target="_blank" href="http://www.appnongye.com/" style="color:#555;" rel="nofollow">农科助手</a>&nbsp;
                    <a target="_blank" href="http://www.sheyuan.com/index.htm" style="color:#555;" rel="nofollow">社员网</a>&nbsp;
                    <a target="_blank" href="http://www.yzyy365.com/" style="color:#555;" rel="nofollow">云种养</a>
                    <a target="_blank" href="http://www.comjia.com" style="color:#555;" >北京房产网</a>
                    <a target="_blank" href="http://www.hbjsjyjxlt.com" style="color:#555;" >河北新闻门户</a>
                    <a target="_blank" href="http://www.berui.com" style="color:#555;" >合肥房产网</a>
                    <a target="_blank" href="http://www.oym56lm.com" style="color:#555;" >找仓库</a>
                    <a target="_blank" href="http://www.lexinfang.com" style="color:#555;" >海南房产信息</a>
                    <a target="_blank" href="http://wuxi.focus.cn" style="color:#555;" >无锡买房</a>
                    <a target="_blank" href="http://www.officese.com" style="color:#555;" >中华写字楼网</a>
                    <a target="_blank" href="http://www.lepu.cn" style="color:#555;" >店铺出租</a>
                    <a target="_blank" href="http://www.jinglou8.com" style="color:#555;" >北京写字楼出租</a>
                    <a target="_blank" href="http://www.hzccoo.com/" style="color:#555;" >化州在线</a>
                    {{--www.appnongye.com--}}
                </h6>
            </div>
@stop
